package com.czf.company.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.czf.common.entity.CompanyBaseInfo;
import com.czf.common.entity.CreditCompany;
import com.czf.common.mapper.CompanyBaseInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zfChen
 * @create 2022/4/24 17:13
 */
@Service
public class CompanyBaseInfoSerivceImpl {

    @Autowired
    private CompanyBaseInfoMapper companyBaseInfoMapper;

    public int insert(CompanyBaseInfo companyBaseInfo){
        int i = companyBaseInfoMapper.insert(companyBaseInfo);
        return i;
    }

    public CompanyBaseInfo select(Long userId) {
        CompanyBaseInfo companyBaseInfo = companyBaseInfoMapper.selectById(userId);
        return companyBaseInfo;
    }

    public int update(CompanyBaseInfo companyBaseInfo) {
        int i = companyBaseInfoMapper.updateById(companyBaseInfo);
        return i;
    }

}
